package com.songminju.jsong_httpserver.http;

public interface HttpResponse {
	
	//不会被缓存，实时写入客户端，调用次方法后无法再次更改请求头
	HttpResponse print(String str);
	HttpResponse println(String str);
	
	//不会被缓存，实时写入客户端，调用次方法后无法再次更改请求头
	HttpResponse write(byte[] bytes);
	
	HttpResponse state(int state);
	
	HttpResponse header(String name,String value);
	HttpResponse cookie(Cookie cookie);
	//结束此次响应，调用后无法再调用print、write等方法
	void end();
}
